import { UPDATEPAGECOMPANYHOMEPAGE } from '../types/pagecompanyhomepage'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  swipersource: [{}, {}, {}],
  companydetail: {
    taglist: [{}, {}, {}]
  },
  choosecurrent: 0,
  jobcount: 333,
  companyintro: '',
  companyaddress: {
    addressname: ''
  },
  iacmessage: {
    list: [{}, {}, {}]
  },
  joblist: [{}, {}, {}, {}, {}]
}

export default handleActions(
  {
    [UPDATEPAGECOMPANYHOMEPAGE](state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
